package org.zdc.pivot.wtk.listener;
import org.zdc.pivot.wtk.Component;

interface IComponentDataListener 
{
	/**
	 * 当值被添加到组件的用户数据字典中时
	 * @param	c
	 * @param	key
	 */
	function valueAdded(c:Component, key:String):Void;
	
	/**
	 * 当组件用户数据的值被更新时
	 * @param	c
	 * @param	key
	 * @param	prevValue
	 */
	function valueUpdated(c:Component, key:String, prevValue:Dynamic):Void;
	
	/**
	 * 当组件用户数据词典中的值被删除
	 * @param	c
	 * @param	key
	 * @param	value
	 */
	function valueRemoved(c:Component, key:String, value:Dynamic):Void;
}